﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001489 RID: 5257
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UnlockAvatarPathCsReq : IMessage<UnlockAvatarPathCsReq>, IMessage, IEquatable<UnlockAvatarPathCsReq>, IDeepCloneable<UnlockAvatarPathCsReq>, IBufferMessage
	{
		// Token: 0x1700422E RID: 16942
		// (get) Token: 0x0600EB02 RID: 60162 RVA: 0x00274331 File Offset: 0x00272531
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UnlockAvatarPathCsReq> Parser
		{
			get
			{
				return UnlockAvatarPathCsReq._parser;
			}
		}

		// Token: 0x1700422F RID: 16943
		// (get) Token: 0x0600EB03 RID: 60163 RVA: 0x00274338 File Offset: 0x00272538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UnlockAvatarPathCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004230 RID: 16944
		// (get) Token: 0x0600EB04 RID: 60164 RVA: 0x0027434A File Offset: 0x0027254A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UnlockAvatarPathCsReq.Descriptor;
			}
		}

		// Token: 0x0600EB05 RID: 60165 RVA: 0x00274351 File Offset: 0x00272551
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarPathCsReq()
		{
		}

		// Token: 0x0600EB06 RID: 60166 RVA: 0x00274359 File Offset: 0x00272559
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarPathCsReq(UnlockAvatarPathCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EB07 RID: 60167 RVA: 0x0027437E File Offset: 0x0027257E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarPathCsReq Clone()
		{
			return new UnlockAvatarPathCsReq(this);
		}

		// Token: 0x17004231 RID: 16945
		// (get) Token: 0x0600EB08 RID: 60168 RVA: 0x00274386 File Offset: 0x00272586
		// (set) Token: 0x0600EB09 RID: 60169 RVA: 0x0027438E File Offset: 0x0027258E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiPathAvatarType AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x0600EB0A RID: 60170 RVA: 0x00274397 File Offset: 0x00272597
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UnlockAvatarPathCsReq);
		}

		// Token: 0x0600EB0B RID: 60171 RVA: 0x002743A5 File Offset: 0x002725A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UnlockAvatarPathCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EB0C RID: 60172 RVA: 0x002743D4 File Offset: 0x002725D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EB0D RID: 60173 RVA: 0x00274419 File Offset: 0x00272619
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EB0E RID: 60174 RVA: 0x00274421 File Offset: 0x00272621
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EB0F RID: 60175 RVA: 0x0027442A File Offset: 0x0027262A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EB10 RID: 60176 RVA: 0x0027445C File Offset: 0x0027265C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EB11 RID: 60177 RVA: 0x0027449A File Offset: 0x0027269A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UnlockAvatarPathCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != MultiPathAvatarType.None)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EB12 RID: 60178 RVA: 0x002744CB File Offset: 0x002726CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EB13 RID: 60179 RVA: 0x002744D4 File Offset: 0x002726D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.AvatarId = (MultiPathAvatarType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04005D10 RID: 23824
		private static readonly MessageParser<UnlockAvatarPathCsReq> _parser = new MessageParser<UnlockAvatarPathCsReq>(() => new UnlockAvatarPathCsReq());

		// Token: 0x04005D11 RID: 23825
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D12 RID: 23826
		public const int AvatarIdFieldNumber = 10;

		// Token: 0x04005D13 RID: 23827
		private MultiPathAvatarType avatarId_;
	}
}
